package com.meteor.user.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.Date;

/**
 * 操作日志
 *
 * @author lynn
 * @date 2024/1/03
 */

@Data
@TableName("sys_log_operate")
public class SysLogOperate {

    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    @Schema(description = "id")
    private String id;

    @Schema(description = "用户ID")
    private String userId;


    @Schema(description = "操作人")
    private String realName;


    @Schema(description = "模块名")
    private String module;


    @Schema(description = "操作名")
    private String name;

    @Schema(description = "请求URI")
    private String reqUri;


    @Schema(description = "请求方法")
    private String reqMethod;


    @Schema(description = "请求参数")
    private String reqParams;

    @Schema(description = "操作IP")
    private String ip;


    @Schema(description = "登录地点")
    private String address;


    @Schema(description = "User Agent")
    private String userAgent;


    @Schema(description = "操作类型")
    private Integer operateType;


    @Schema(description = "执行时长")
    private Integer duration;


    @Schema(description = "操作状态")
    private Integer status;


    @Schema(description = "返回消息")
    private String resultMsg;


    @Schema(description = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;


    @Schema(description = "租户ID")
    private String merchantId;

}